package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author cska
 * 
 */

public interface ocDialog {

    public void ok();

    public void cancel();

    public class okAdapter implements ActionListener {
        
        protected ocDialog ocd;

        public okAdapter(ocDialog ocd) {
            this.ocd = ocd;
        }

        public void actionPerformed(ActionEvent e) {
            ocd.ok();
        }

    }

    public class cancelAdapter implements ActionListener {

        protected ocDialog ocd;

        public cancelAdapter(ocDialog ocd) {
            this.ocd = ocd;
        }

        public void actionPerformed(ActionEvent e) {
            ocd.cancel();
        }

    }

}
